const busi = {
  busiCode: { type: 'string', description: '业务状态' },
  msg: { type: 'string', description: '业务描述' }
}
const token = {
  accessToken: { type: 'string' },
  refreshToken: { type: 'string' }
}
module.exports = {
  loginRes: {
    ...busi,
    userInfo: { type: 'loginUser' },
    ...token
  },
  loginUser: {
    id: { type: 'string', description: 'id' },
    name: { type: 'string', description: '昵称' },
    headIcon: { type: 'string', description: '头像地址' }
  },
  refreshReq: {
    token: { type: 'string', description: 'refreshToken' }
  },
  refreshRes: {
    ...busi,
    ...token
  }
}
